@echo off

Set pulllog=pull_log.txt
Set pushlog=push_log.txt

Set mainblanch=doc

call git pull sjy %mainblanch% --rebase > %pulllog% 2>&1
if %errorlevel% neq 0 (
    echo Pull failed, check %pulllog% for details.
) else (
    echo Pull successful.
    if exist %pulllog% del %pulllog%
)


call git push sjy %mainblanch% > %pushlog% 2>&1
if %errorlevel% neq 0 (
    echo Push failed, check %pushlog% for details.
) else (
    echo Push successful.
    if exist %pushlog% del %pushlog%
)



